import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

export const routes = [
    {
        path: '*/',
        component: () => import( '../views/mainFun/index.vue'),
    },
    {
        path: '/',
        component: () => import( '../views/loginRegister/index.vue')
    },
    {
        path: '/login',
        component: () => import( '../views/loginRegister/index.vue')
    },
    {
        path: '/main',
        component: () => import( '../views/mainFun/index.vue'),
        children:[
            {
                path: '/main',
                redirect: '/main/homePage'
            },
            {
                path: '/main/homePage',
                component: () => import('../views/demoSetOf/demoSetOf.vue'),
                meta: {name:'首页',icon:'icon-shouyefill',activation:false},
                children:[
                ],
            },
            {
                path: '/main/dataMonitor',
                component: () => import('../views/dataMonitor/dataMonitor.vue'),
                meta: {name:'数据监控界面',icon:'icon-shuju',activation:false},
                children:[
                ],
            },
            {
                path: '/main/OrderInterface',
                component: () => import('../views/OrderInterface/OrderInterface.vue'),
                meta: {name:'订单界面',icon:'icon-shuju',activation:false},
                children:[
                ],
            },
            {
                path: '/main/OrderQueryInterface',
                component: () => import('../views/OrderQueryInterface/OrderQueryInterface.vue'),
                meta: {name:'订单查询界面',icon:'icon-shuju',activation:false},
                children:[
                ],
            },
            {
                path: '/main/UserManagement',
                component: () => import('../views/UserManagement/UserManagement.vue'),
                meta: {name:'用户管理界面',icon:'icon-shuju',activation:false},
                children:[
                ],
            },
        ]
    }
]
export const router = new VueRouter({
  // mode: 'history',
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

